﻿
using ETModel;

namespace ETHotfix {

    /// <summary>
    /// 玩家从Gate服务器断开连接消息
    /// </summary>
	[ActorMessageHandler(AppType.Map)]
	public class G2M_SessionDisconnectHandler : AMActorLocationHandler<MapPlayer, G2M_SessionDisconnect>
	{
		protected override void Run(MapPlayer mapPlayer, G2M_SessionDisconnect message) {
            //简单的从map端销毁玩家即可
            Game.Scene.GetComponent<MapPlayersComponent>().Remove(mapPlayer.InstanceId);
        }
	}
}